package com.lyw.gulimall.ware.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyw.common.utils.PageUtils;
import com.lyw.gulimall.ware.entity.PurchaseEntity;
import com.lyw.gulimall.ware.vo.MergePurchaseListVo;
import com.lyw.gulimall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author liyawei
 * @email liyawei@gmail.com
 * @date 2022-05-31 12:20:13
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    IPage<PurchaseEntity> queryUnReceivePurchaseListPage(Integer page, Integer limit);

    void mergePurchaseList(MergePurchaseListVo mergePurchaseListVo);

    IPage<PurchaseEntity> getUserPurchaseLists(Integer page, Integer limit, List<Long> purchaseIds);

    void done(PurchaseDoneVo purchaseDoneVo);

    IPage<Map<String, Object>> queryPageByCondition(Integer page, Integer limit, String key, Integer status);
}

